package com.zzc.fwzpxt.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 产品 product
 * </p>
 *
 * @author XiaoBingBy
 * @since 2017-09-28
 */
public class Product extends Model<Product> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 产品编号
     */
	@TableField("product_code")
	private String productCode;
    /**
     * 产品名称
     */
	@TableField("product_name")
	private String productName;
    /**
     * 产品描述
     */
	@TableField("product_content")
	private String productContent;
    /**
     * 产品图片
     */
	@TableField("product_img")
	private String productImg;
    /**
     * 公司类型
     */
	@TableField("company_id")
	private Long companyId;
    /**
     * 注册成本
     */
	@TableField("reg_capital")
	private Integer regCapital;
    /**
     * 注册时间
     */
	@TableField("reg_date")
	private String regDate;
    /**
     * 注册地址
     */
	@TableField("reg_address_id")
	private Long regAddressId;
    /**
     * 经营期限
     */
	@TableField("operating_period")
	private String operatingPeriod;
    /**
     * 经营范围
     */
	@TableField("operating_scope")
	private String operatingScope;
    /**
     * 转让优势
     */
	private String advantage;
	/**
	 * 销售人员QQ
	 */
	private String qq;
    /**
     * 状态 0:删除 1:正常
     */
	private Integer status;
    /**
     * 创建时间
     */
	@TableField(value = "gmt_create", fill = FieldFill.INSERT)
	private Date gmtCreate;
    /**
     * 修改时间
     */
	@TableField(value = "gmt_modified", fill = FieldFill.INSERT_UPDATE)
	private Date gmtModified;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getProductCode() {
		return productCode;
	}

	public void setProductCode(String productCode) {
		this.productCode = productCode;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public String getProductContent() {
		return productContent;
	}

	public void setProductContent(String productContent) {
		this.productContent = productContent;
	}

	public String getProductImg() {
		return productImg;
	}

	public void setProductImg(String productImg) {
		this.productImg = productImg;
	}

	public Long getCompanyId() {
		return companyId;
	}

	public void setCompanyId(Long companyId) {
		this.companyId = companyId;
	}

	public Integer getRegCapital() {
		return regCapital;
	}

	public void setRegCapital(Integer regCapital) {
		this.regCapital = regCapital;
	}

	public String getRegDate() {
		return regDate;
	}

	public void setRegDate(String regDate) {
		this.regDate = regDate;
	}

	public Long getRegAddressId() {
		return regAddressId;
	}

	public void setRegAddressId(Long regAddressId) {
		this.regAddressId = regAddressId;
	}

	public String getOperatingPeriod() {
		return operatingPeriod;
	}

	public void setOperatingPeriod(String operatingPeriod) {
		this.operatingPeriod = operatingPeriod;
	}

	public String getOperatingScope() {
		return operatingScope;
	}

	public void setOperatingScope(String operatingScope) {
		this.operatingScope = operatingScope;
	}

	public String getAdvantage() {
		return advantage;
	}

	public void setAdvantage(String advantage) {
		this.advantage = advantage;
	}

	public String getQq() {
		return qq;
	}

	public void setQq(String qq) {
		this.qq = qq;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public Date getGmtModified() {
		return gmtModified;
	}

	public void setGmtModified(Date gmtModified) {
		this.gmtModified = gmtModified;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Product{" +
			"id=" + id +
			", productCode=" + productCode +
			", productName=" + productName +
			", productContent=" + productContent +
			", productImg=" + productImg +
			", companyId=" + companyId +
			", regCapital=" + regCapital +
			", regDate=" + regDate +
			", regAddressId=" + regAddressId +
			", operatingPeriod=" + operatingPeriod +
			", operatingScope=" + operatingScope +
			", advantage=" + advantage +
			", qq=" + qq +
			", status=" + status +
			", gmtCreate=" + gmtCreate +
			", gmtModified=" + gmtModified +
			"}";
	}
}
